<%@ page import="java.util.Locale" %>
<%@ page import="java.util.ResourceBundle" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/26/026
  Time: 16:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Locale locale = null;
    String localSrt = (String) request.getAttribute("local");
    if ("en_US".equals(localSrt)){
        locale=Locale.US;
    }else if ("zh_CH".equals(localSrt)){
        locale=Locale.CHINA;
    }else {
        locale = Locale.getDefault();
    }
    ResourceBundle i18n = ResourceBundle.getBundle("i18n", locale);

%>
<%=i18n.getString("login")%>
<a href="../i18n.do?action=zh_CH">中文</a>|
<a href="../i18n.do?action=en_US">English</a>
</body>
</html>
